Next steps for FnDef binder changes (instantiate most FnDef binders) - #159403
Next steps for FnDef binder changes (instantiate most FnDef binders)#159403addiesh wants to merge 1 commit into
Conversation
|
Thanks for the pull request, and welcome! The Rust Project is excited to review your changes, and you should hear from @oli-obk (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
014b214 to
d780036
Compare
This comment has been minimized.
This comment has been minimized.
This comment was marked as resolved.
This comment was marked as resolved.
d780036 to
6e740ba
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
330681e to
83e428c
Compare
This comment has been minimized.
This comment has been minimized.
83e428c to
9fb9767
Compare
This comment has been minimized.
This comment has been minimized.
9fb9767 to
3920a9e
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
5373d53 to
f118249
Compare
This comment has been minimized.
This comment has been minimized.
f118249 to
6aeb29e
Compare
This comment has been minimized.
This comment has been minimized.
6aeb29e to
ac8e8e5
Compare
This comment has been minimized.
This comment has been minimized.
Next steps for FnDef binder changes (instantiate most FnDef binders)
Replace most `Ty::new_fn_def` calls with `type_of` queries directly This is so we can reduce the amount of code and changes in rust-lang#159403. It should stand on its own, but really it's meant as an extended part of 159403. This allows getting the right `ty::FnDef` even cross-crate, as the `type_of` query results are stored in metadata, in contrast to the queries for computing the binder for various declarations. These binders are already cached via `fn_sig`, but using that is somewhat overkill and can cause cycle errors in some cases.
Replace most `Ty::new_fn_def` calls with `type_of` queries directly This is so we can reduce the amount of code and changes in rust-lang#159403. It should stand on its own, but really it's meant as an extended part of 159403. This allows getting the right `ty::FnDef` even cross-crate, as the `type_of` query results are stored in metadata, in contrast to the queries for computing the binder for various declarations. These binders are already cached via `fn_sig`, but using that is somewhat overkill and can cause cycle errors in some cases.
This comment has been minimized.
This comment has been minimized.
Replace most `Ty::new_fn_def` calls with `type_of` queries directly This is so we can reduce the amount of code and changes in rust-lang#159403. It should stand on its own, but really it's meant as an extended part of 159403. This allows getting the right `ty::FnDef` even cross-crate, as the `type_of` query results are stored in metadata, in contrast to the queries for computing the binder for various declarations. These binders are already cached via `fn_sig`, but using that is somewhat overkill and can cause cycle errors in some cases.
|
Finished benchmarking commit (e543d43): comparison URL. Overall result: ❌✅ regressions and improvements - please read:Benchmarking means the PR may be perf-sensitive. It's automatically marked not fit for rolling up. Overriding is possible but disadvised: it risks changing compiler perf. Next, please: If you can, justify the regressions found in this try perf run in writing along with @bors rollup=never rustc-perf Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 1.0%, secondary 1.6%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary -1.3%, secondary -3.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary 0.2%, secondary 0.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 490.165s -> 490.514s (0.07%) |
Rollup merge of #159665 - addiesh:turbofish-fear-me, r=oli-obk Replace most `Ty::new_fn_def` calls with `type_of` queries directly This is so we can reduce the amount of code and changes in #159403. It should stand on its own, but really it's meant as an extended part of 159403. This allows getting the right `ty::FnDef` even cross-crate, as the `type_of` query results are stored in metadata, in contrast to the queries for computing the binder for various declarations. These binders are already cached via `fn_sig`, but using that is somewhat overkill and can cause cycle errors in some cases.
This comment has been minimized.
This comment has been minimized.
|
Some changes occurred to the core trait solver cc @rust-lang/initiative-trait-system-refactor Some changes occurred in compiler/rustc_passes/src/check_attr.rs cc @jdonszelmann, @JonathanBrouwer
Some changes occurred in coverage instrumentation. cc @Zalathar Some changes occurred in compiler/rustc_attr_parsing cc @jdonszelmann, @JonathanBrouwer These commits modify the If this was unintentional then you should revert the changes before this PR is merged.
cc @rust-lang/miri Some changes occurred to the CTFE / Miri interpreter cc @rust-lang/miri This PR changes rustc_public cc @oli-obk, @celinval, @ouz-a, @makai410 Some changes occurred to the CTFE machinery The parser was modified, potentially altering the grammar of (stable) Rust cc @fmease
Some changes occurred in GUI tests. Some changes occurred to diagnostic attributes. cc @mejrs changes to the core type system cc @lcnr This PR modifies If appropriate, please update Some changes occurred in cc @BoxyUwU Some changes occurred in compiler/rustc_hir/src/attrs |
1047fdb to
d8350cc
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
This comment was marked as resolved.
This comment was marked as resolved.
There was a problem hiding this comment.
this """"fixed"""" issue #133613, but the errors are absolutely nasty and it uses experimental features. This is worth checking out.
d8350cc to
85d2121
Compare
View all comments
This change is a part of the ongoing effort to clean up binder/turbofishing behavior in the compiler (#156581).
This PR instantiates binders that were previously created via
ty::Binder::dummy()with meaningfully bound vars.r? oli-obk